package com.atgulimall.com.cart.service;

import com.atgulimall.com.cart.vo.Cart;
import com.atgulimall.com.cart.vo.CartItem;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * @author 满超
 * @date 2020/06/20
 **/
public interface CartService {
    CartItem addToCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    CartItem getCartItem(Long skuId);

    Cart getCart() throws ExecutionException, InterruptedException;

    void clearCart(String cartKey);

    void checkItem(Long skuId, Integer check);

    void del(Long skuId);

    void num(Long skuId, Integer num);

    List<CartItem> getItem();
}
